#include <iostream>
#include <fstream>

long long gcd(long long a, long long b) 
{
   if (b == 0)
      return a;
   else
      return gcd (b, a % b);
}

long long find(long long  a, long long  b, long long  & x, long long  & y)
{
   if (a == 0)
   {
      x = 0; 
      y = 1;
      return b;
   }
   long long x2, y2, ans = find(b % a, a, x2, y2);
   x = y2 - (b / a) * x2;
   y = x2;
   return ans;
}

int main()
{
   std::ifstream inf("in.txt");
   std::ofstream outf("out.txt");
   long long a, b, c;

   while (inf >> a >> b >> c)
   {
      if (a == 0 && b == 0)
	  {
	     if (c == 0)
		 {
		    outf << "0 0" << std::endl;
		 }
		 else
		 {
		    outf << "<none>" << std::endl;
		 }
         continue;
	  }

	  if (a == 0 && b != 0)
	  {
	     if (c % b == 0)
		 {
		    outf << c / b << ' ' << 0 << std::endl;
		 }
		 else
		 {
		    outf << "<none>" << std::endl;
		 }
		 continue;
	  }

	  if (a != 0 && b == 0)
	  {
	     if (c % a == 0)
		 {
		    outf << c / a << ' ' << 0 << std::endl;
		 }
		 else
		 {
		    outf << "<none>" << std::endl;
		 }
		 continue;
	  }
      
      if (c % gcd(a, b) != 0)
	  {
         outf << "<none>" << std::endl;
      }
      else
	  {
         long long x, y, g = find(a, b, x, y); 
         outf << x * c / g << ' ' << y * c / g << std::endl;   	    
      }   
   }

   inf.close();
   outf.close();
   return 0;
}